package com.advertise.dao;




import java.util.List;


import com.advertise.model.Menu;
import com.advertise.model.TreeNode;

public class MenuDAO_Impl extends BaseDAO_Impl<Menu, Integer> implements MenuDAO_IFace {

	
	public List<TreeNode> getSubMenus(int menuId) {
		String queryHQL="from Menu where parent=?";
		
		Object[] param=new  Object[]{new Integer(menuId)};
		
		return getHibernateTemplate().find(queryHQL,param);
		
	}


}
